Wdr\App\Helpers\Woocommerce D

Total Complexity 459
Dependencies 8
Dependents 17
Total lines 1,941
Lines of code 1,108
Logical lines of code 595
Comment lines 586
Methods 119
Properties 5

Methods 119

Method Rating Maintainability Complexity Lines of code
getAllAvailableAttributeDetails()
A
50 12 26
getCartSubtotal()
A
52 10 23
getBillingEmailFromPost()
A
54 10 21
getCart()
A
56 9 18
removeSpecificNoticeFromSession()
A
55 8 20
addCartFee()
S
54 7 20
isProductInSale()
S
60 7 13
getProductId()
S
58 6 16
get_shipping_packages()
S
63 7 10
availableProductVariations()
S
59 6 14
setOrderMeta()
S
61 6 12
getOrderItemsQty()
S
54 5 22
getFirstChildOfVariableProduct()
S
58 5 17
getProductsBySku()
S
58 5 17
setSession()
S
64 6 9
getSession()
S
63 6 10
add_to_cart()
S
62 6 10
set_quantity()
S
63 6 10
remove_cart_item()
S
63 6 10
getCartItem()
S
65 6 8
getAppliedCoupons()
S
63 6 10
remove_coupon()
S
63 6 10
calculateCartTotals()
S
65 6 9
isCartNeedsShipping()
S
63 6 10
getIncludingTaxPrice()
S
59 5 14
getExcludingTaxPrice()
S
59 5 14
getProductCategories()
S
60 5 13
getProductIdFromCartItem()
S
61 5 12
getCartLineItemSubtotal()
S
61 5 11
getProductParentId()
S
62 5 11
getProductSalePrice()
S
62 5 11
getTitleOfProduct()
S
54 4 20
getShippingCountry()
S
66 5 8
getShippingCity()
S
66 5 8
getShippingState()
S
66 5 8
getShippingZipCode()
S
66 5 8
getCountriesList()
S
66 5 8
getItemId()
S
64 5 10
getStatesList()
S
66 5 8
getBillingCity()
S
66 5 8
getOrdersByConditions()
S
58 3 16
getCustomProductTaxonomies()
S
58 3 16
productTypeIs()
S
68 4 7
getProductFromCartItem()
S
63 4 10
getProductAttributes()
S
68 4 7
getProductTags()
S
68 4 7
getProductPrice()
S
66 4 8
getPaymentMethodList()
S
67 4 8
getWeight()
S
67 4 8
getProductRegularPrice()
S
66 4 8
variationIsVisible()
S
67 4 8
getPriceHtml()
S
66 4 8
getOrderItem()
S
66 4 8
getProductSku()
S
68 4 7
getProductPriceSuffix()
S
67 4 7
getProductChildren()
S
68 4 7
get_variation_regular_price()
S
67 4 7
isProductHasStock()
S
69 4 6
validateDynamicCoupon()
S
59 3 14
getCheckOutPostData()
S
61 3 12
checkCouponAlreadyExistsInWooCommerce()
S
62 3 11
isRTLEnable()
S
71 3 6
getOrderPostType()
S
67 3 9
getOrderItemsId()
S
64 3 10
checkProductIsPurchasable()
S
70 3 6
getOrderItems()
S
70 3 6
getOrderCurrency()
S
70 3 6
getOrderItemData()
S
70 3 6
getOrderItemMeta()
S
70 3 6
getCategorySlugByID()
S
67 3 7
getCartTotalQuantities()
S
63 3 10
setOrderItemMeta()
S
69 3 6
customOrdersTableIsEnabled()
S
69 3 6
getRole()
S
70 3 6
addCouponDiscount()
S
70 3 6
getVariationPrices()
S
70 3 6
getAttributeName()
S
70 3 6
is_ajax()
S
67 3 8
getCartItems()
S
68 3 7
getProduct()
S
64 3 9
getCouponCode()
S
70 3 6
hasCouponInCart()
S
70 3 6
getAttributeVariation()
S
70 3 6
getOrderByItem()
S
70 3 6
setCartProductPrice()
S
70 3 6
getOrder()
S
67 3 9
getOrderTotal()
S
70 3 6
orderHasShippingMethod()
S
70 3 6
getAttributeOption()
S
70 3 6
getBannerPositionList()
S
50 1 28
formatSalePrice()
S
70 2 6
formatPriceRange()
S
66 2 8
wc_format_decimal()
S
70 2 6
getParentProduct()
S
68 2 7
removeHtmlTags()
S
67 2 8
productLoopEnd()
S
71 2 6
wc_get_formatted_variation()
S
68 2 7
setLoopProperties()
S
71 2 6
get_currency_symbol()
S
72 2 6
productLoopStart()
S
71 2 6
round()
S
68 2 7
getWooPluginUrl()
S
72 2 6
getUserRolesList()
S
70 2 7
getOrderStatusList()
S
72 2 6
isEnteredPriceIncludeTax()
S
69 2 7
isTaxEnabled()
S
69 2 7
formatPrice()
S
71 2 6
wc_add_notice()
S
72 2 5
formatStringToLower()
S
69 2 7
getTagSlugByID()
S
66 2 8
getTermSlugByID()
S
66 2 8
formatStringToUpper()
S
69 2 7
getOnSaleProductsIds()
S
69 2 7
printNotice()
S
73 2 5
getWeekDaysList()
S
62 1 11
reCalculateCartTotal()
S
72 1 5
displayTableIfAnyOneVariantHasDiscount()
S
79 1 3
getConvertedFixedPrice()
S
79 1 3
getUserSelectedPaymentMethod()
S
79 1 3